package cn.mumzone.pos.model;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * Created by qiuzhenhuan on 2019/6/28.
 */

public class MemberEntity implements Serializable {

    public static final String DISCOUNT_TYPE_DISCOUNT = "0";
    public static final String DISCOUNT_TYPE_MEMBER_PRICE = "1";
    public static final String DISCOUNT_TYPE_NULL = "2";

    private String birthday;
    private String lastTime;
    private String companyId;
    private int gender;//0男 1女
    private String phone;
    private String name;
    private long confinementDate;
    private String id;
    private String memberId;
    private String userName;
    private int currentState;
    private String currentAmount;
    private String memberPoints;
    private String levelName;
    private String howMoneyOne;
    private String levelId;
    private List<BabysBean> babys;
    private List<ParamtersBean> paramters;
    private long createTime;
    private String timesCardNum;
    private String ticketNum;
    private String experienceNum;
    private String consignedNum;
    private String discountType;//0 会员折扣 1会员价 2 不优惠
    private String memberDiscount;
    private String memberPriceLevelId;

    public String getDiscountType() {
        return discountType;
    }

    public void setDiscountType(String discountType) {
        this.discountType = discountType;
    }

    public String getMemberDiscount() {
        return memberDiscount;
    }

    public void setMemberDiscount(String memberDiscount) {
        this.memberDiscount = memberDiscount;
    }

    public String getMemberPriceLevelId() {
        return memberPriceLevelId;
    }

    public void setMemberPriceLevelId(String memberPriceLevelId) {
        this.memberPriceLevelId = memberPriceLevelId;
    }

    public String getHowMoneyOne() {
        return howMoneyOne;
    }

    public void setHowMoneyOne(String howMoneyOne) {
        this.howMoneyOne = howMoneyOne;
    }

    public String getConsignedNum() {
        return consignedNum;
    }

    public void setConsignedNum(String consignedNum) {
        this.consignedNum = consignedNum;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getConfinementDate() {
        return confinementDate;
    }

    public void setConfinementDate(long confinementDate) {
        this.confinementDate = confinementDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getCurrentState() {
        return currentState;
    }

    public void setCurrentState(int currentState) {
        this.currentState = currentState;
    }

    public String getCurrentAmount() {
        return currentAmount;
    }

    public void setCurrentAmount(String currentAmount) {
        this.currentAmount = currentAmount;
    }

    public String getMemberPoints() {
        return memberPoints;
    }

    public void setMemberPoints(String memberPoints) {
        this.memberPoints = memberPoints;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public String getLevelId() {
        return levelId;
    }

    public void setLevelId(String levelId) {
        this.levelId = levelId;
    }

    public List<BabysBean> getBabys() {
        return babys;
    }

    public void setBabys(List<BabysBean> babys) {
        this.babys = babys;
    }

    public List<ParamtersBean> getParamters() {
        return paramters;
    }

    public void setParamters(List<ParamtersBean> paramters) {
        this.paramters = paramters;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getTimesCardNum() {
        return timesCardNum;
    }

    public void setTimesCardNum(String timesCardNum) {
        this.timesCardNum = timesCardNum;
    }

    public String getTicketNum() {
        return ticketNum;
    }

    public void setTicketNum(String ticketNum) {
        this.ticketNum = ticketNum;
    }

    public String getExperienceNum() {
        return experienceNum;
    }

    public void setExperienceNum(String experienceNum) {
        this.experienceNum = experienceNum;
    }

    public static class BabysBean implements Serializable {

        private String id;
        private String companyId;
        private String memberCompanyId;
        private String name;
        private int gender;
        private long birthday;
        private String height;
        private String weight;
        private String remark;
        private long createTime;
        private long updateTime;

        private int labour;//0 1 2 早产 顺产 剖腹产

        public int getLabour() {
            return labour;
        }

        public void setLabour(int labour) {
            this.labour = labour;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCompanyId() {
            return companyId;
        }

        public void setCompanyId(String companyId) {
            this.companyId = companyId;
        }

        public String getMemberCompanyId() {
            return memberCompanyId;
        }

        public void setMemberCompanyId(String memberCompanyId) {
            this.memberCompanyId = memberCompanyId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public long getBirthday() {
            return birthday;
        }

        public void setBirthday(long birthday) {
            this.birthday = birthday;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(long updateTime) {
            this.updateTime = updateTime;
        }


        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            BabysBean babysBean = (BabysBean) o;
            return Objects.equals(id, babysBean.id);

        }

        @Override
        public int hashCode() {
            return Objects.hash(id);
        }
    }

    public static class ParamtersBean implements Serializable {

        private String name;
        private String value;

        public String getName() {
            return name;
        }

        public void setName(String nameX) {
            this.name = nameX;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
